package cn.sc.summer.calculate.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 类名：更新定时任务表单
 *
 * @author a-xin
 * @date 2023/11/27 08:22
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "启动定时任务表单")
public class UpdateTaskForm implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 任务ID
     */
    @ApiModelProperty(value = "任务ID")
    @NotBlank(message = "任务ID不能为空！")
    private String taskId;

    /**
     * 定时任务表达式
     */
    @ApiModelProperty(value = "定时任务表达式")
    @NotBlank(message = "定时任务表达式不能为空！")
    private String corn;

}
